package com.yuelan.app.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description:
 * @Author: ZhaoYi
 * @date: 24-6-21 22:43
 */

@Data
@TableName("apa_rent_bill")
public class RentBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;


    @TableField(value = "cycle")
    private Integer cycle;


    @TableField(value = "apartment_id")
    private Long apartmentId;


    @TableField(value = "room_id")
    private String roomId;


    @TableField(value = "tenant_id")
    private Long tenantId;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "collection_time")
    private Date collectionTime;

    @TableField(value = "amount")
    private BigDecimal amount;


    @TableField("payment_type")
    private String paymentType;

    /**
     * 参数类型：'Collected','Uncollected','Overdue'
     */

    @TableField(value = "status")
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

}
